package com.gitee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.pojo.Admin;
import com.gitee.vo.AdminVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper extends BaseMapper<Admin> {

    AdminVo selectByUsername(@Param("username") String username);

    List<AdminVo> selectByNickName(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
                                   @Param("nickName") String nickName);

}
